import request from '@/utils/request'

// 查询菜单信息表列表
export function listSsoMenu (query) {
  return request({
    url: '/menu/ssoMenu/list',
    method: 'get',
    params: query
  })
}

// 查询菜单信息表详细
export function getSsoMenu (id) {
  return request({
    url: '/menu/ssoMenu/' + id,
    method: 'get'
  })
}

// 新增菜单信息表
export function addSsoMenu (data) {
  return request({
    url: '/menu/ssoMenu',
    method: 'post',
    data: data
  })
}

// 修改菜单信息表
export function updateSsoMenu (data) {
  return request({
    url: '/menu/ssoMenu',
    method: 'put',
    data: data
  })
}

// 删除菜单信息表
export function delSsoMenu (id) {
  return request({
    url: '/menu/ssoMenu/' + id,
    method: 'delete'
  })
}

// 导出菜单信息表
export function exportSsoMenu (query) {
  return request({
    url: '/menu/ssoMenu/export',
    method: 'get',
    params: query
  })
}
// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/menu/ssoMenu/getInitData/' + dictTypes,
    method: 'get'
  })
}
